package com.sqs.service;

import com.sqs.dto.KnowledgeFileInsertDTO;
import com.sqs.dto.KnowledgeFileUpdateDTO;
import com.sqs.entity.KnowledgeFile;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sqs.vo.KnowledgeFileVO;

import java.util.List;


public interface IKnowledgeFileService extends IService<KnowledgeFile> {

    /**
     * 查询知识库内所有的知识文件
     * @param repositoryId
     * @return
     */
    List<KnowledgeFileVO> knowledgeFileSelect(Long repositoryId);

    /**
     * 向知识库添加文件
     * @param knowledgeFileInsertDTO
     * @return
     * */
    KnowledgeFileVO knowledgeFileInsert(KnowledgeFileInsertDTO knowledgeFileInsertDTO);

    /**
     * 删除知识文件
     * @param id
     * */
    void knowledgeFileDelete(Long id);

    /**
     * 修改知识文件名称
     * @param knowledgeFileUpdateDTO
     * */
    void knowledgeFileUpdate(KnowledgeFileUpdateDTO knowledgeFileUpdateDTO);
}
